package com.bjsxt.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @date:2021/12/28 22:01
 * @author:yang
 */
@RestController
public class UserInfoContorller {
    @GetMapping("/user/info")
    public Principal userInfo(Principal principal) {
        return principal;
    }
}
